<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><s:text name="voteOption.list.title"/></title>
	<%@ include file="/common/meta.jsp"%>
	<%@ include file="/common/common.jsp"%>
</head>
<body>
<div id="wrapper">
	<div class="curmb"><s:text name="your.site.position"/>:<a href="${ctx}/main.action"><s:text name="homepage"/></a><span>></span><s:text name="voteOption.title"/></div>
	<div class="listtit" id="listtit"><p><span><strong><s:text name="voteOption.list.title"/></strong></span></p></div>
	<s:form action="voteoption-list" id="search_form">
	<div class="searchbox">
		<table class="searchTable">
			<tbody id="searchTable">
				<tr>
					<td class="text"><label for="search" class="labelKeywords"><s:text name="key.words"/>:</label></td>
					<td class="input"><input id="search" type="text" class="txtsearch" /></td>
					<td class="text"><label for="selectClass">选择类别: </label></td>
					<td class="input"><select class="selectClass" type="text"/><option>党群建设</option><option>个私协会</option></select></td>
				</tr>
				<tr class="extend" style="display: none">
					<td><label for="qry_voteOptionTitle"><s:text name="voteOption.voteOptionTitle"/>: </label></td>
					<td><s:textfield name="voteOption.voteOptionTitle"  cssClass="txtsearch" id="qry_voteOptionTitle"/></td>
					<td><label for="qry_voteOptionTitle"><s:text name="voteOption.voteOptionTitle"/>: </label></td>
					<td><s:textfield name="voteOption.voteOptionTitle"  cssClass="txtsearch" id="qry_voteOptionTitle"/></td>
				</tr>
				<tr class="extend" style="display: none">
					<td><label for="qry_memo"><s:text name="voteOption.memo"/>: </label></td>
					<td><s:textfield name="voteOption.memo"  cssClass="txtsearch" id="qry_memo"/></td>
					<td><label for="qry_memo"><s:text name="voteOption.memo"/>: </label></td>
					<td><s:textfield name="voteOption.memo"  cssClass="txtsearch" id="qry_memo"/></td>
				</tr>
				<tr class="extend" style="display: none">
					<td><label for="qry_resultCount"><s:text name="voteOption.resultCount"/>: </label></td>
					<td><s:textfield name="voteOption.resultCount"  cssClass="txtsearch" id="qry_resultCount"/></td>
					<td><label for="qry_resultCount"><s:text name="voteOption.resultCount"/>: </label></td>
					<td><s:textfield name="voteOption.resultCount"  cssClass="txtsearch" id="qry_resultCount"/></td>
				</tr>
				<tr class="extend" style="display: none">
					<td><label for="qry_ord"><s:text name="voteOption.ord"/>: </label></td>
					<td><s:textfield name="voteOption.ord"  cssClass="txtsearch" id="qry_ord"/></td>
					<td><label for="qry_ord"><s:text name="voteOption.ord"/>: </label></td>
					<td><s:textfield name="voteOption.ord"  cssClass="txtsearch" id="qry_ord"/></td>
				</tr>
				<tr class="extend" style="display: none">
					<td><label for="qry_cmsVote"><s:text name="voteOption.cmsVote"/>: </label></td>
					<td><s:textfield name="voteOption.cmsVote"  cssClass="txtsearch" id="qry_cmsVote"/></td>
					<td><label for="qry_cmsVote"><s:text name="voteOption.cmsVote"/>: </label></td>
					<td><s:textfield name="voteOption.cmsVote"  cssClass="txtsearch" id="qry_cmsVote"/></td>
				</tr>

			</tbody>
		</table>
		<div class="searchboxrt"><input type="button" value="<s:text name="query"/>" class="btnsearch" id="search_btn"/><span id="extend">高级查询</span></div>
		<div class="clear"></div>
	</div>
	</s:form>
	<div class="listoperate">
		<span class="cssa"><input id="top_new_btn" type="button" value="<s:text name="new"/>" class="btnadd"/></span>
		<span>
			<input type="button" value="<s:text name="anti-selection"/>" class="btnlist2" id="top_anti_btn"/>
			<input type="button" value="<s:text name="delete"/>" class="btnlist2" id="top_del_btn"/>
		</span>
	</div>
	<div class="listbox" id="listbox">
		<s:form action="voteoption-delete" id="action_form">
		<table class="listgrid" id="listbox">
			<tbody>
				<tr>
					<th><input type="checkbox" name="all" id="all_check"/></th>
					<th><s:text name="voteOption.voteOptionTitle"/></th>
					<th><s:text name="voteOption.memo"/></th>
					<th><s:text name="voteOption.resultCount"/></th>
					<th><s:text name="voteOption.ord"/></th>
					<th><s:text name="voteOption.cmsVote"/></th>

					<th><s:text name="operate"/></th>
				</tr>
				<s:iterator value="page.result">
					<tr>
						<td><input type="checkbox" name="key" value="<s:property value="voteOptionId"/>"/></td>
					<td><s:property value="voteOptionTitle"/>&nbsp;</td>
					<td><s:property value="memo"/>&nbsp;</td>
					<td><s:property value="resultCount"/>&nbsp;</td>
					<td><s:property value="ord"/>&nbsp;</td>
					<td><s:property value="cmsVote"/>&nbsp;</td>

						<td>
							<a href="#this" onclick="goEdit('voteOption.voteOptionId','<s:property value="voteOptionId"/>')"><s:text name="edit"/></a><tt>|</tt>
						    <a href="#this" onclick="goDel('<s:property value="voteOptionId"/>')"><s:text name="delete"/></a>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		</s:form>
	</div>
	<div class="listoperateb ">
		<div class="pager fr"><z:page numberNav="true" selectPageSize="true" input="true" id="ctrl"/></div>
		<span>
			<input type="button" value="<s:text name="anti-selection"/>" class="btnlist2" id="bottom_anti_btn"/>
			<input type="button" value="<s:text name="delete"/>" class="btnlist2" id="bottom_del_btn"/>
		</span>
	</div>
</div>
</body>
</html>
<script type="text/javascript" defer="defer">
	actionName = "voteoption";	
	confirmStr = "<s:text name="delete.confirm"/>";
	chiocenothing = "<s:text name="chiocenothing"/>";
	$(function(){
 		$("#top_new_btn").click(goNew);
 		$("#top_anti_btn").click(antiSelect);
 		$("#top_del_btn").click(goBatchDel);
 		$("#bottom_del_btn").click(goBatchDel);
 		$("#bottom_anti_btn").click(antiSelect);
		$("#search_btn").click(search);
		$("#all_check").click(selAll);
		$("#extend").click(extend);
	});
	
	</script>